package pojo;

import java.util.ArrayList;

public class Order {
	private int id;
	private String createDatetime;
	private String memo;
	private Client client;
	private OrderStatus status;
	private double money=0;
	private Payment payment;
	private ArrayList<OrderItem> orderItems = new ArrayList<>();
	
	public Order(int id2,
			String time,
			String memo2,
			OrderStatus orderStatus,
			Payment payment2, 
			Client client2,
			ArrayList<OrderItem> orderItems
			) {
		// TODO Auto-generated constructor stub
		id = id2;
		createDatetime = time;
		memo = memo2;
		status = orderStatus;
		payment = payment2;
		client = client2;
		this.orderItems = orderItems;
	}
	
	public Order() {
		// TODO Auto-generated constructor stub
	}

	public double getMoney() {
		return money;
	}
	public void setMoney(double money) {
		this.money = money;
	}
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getCreateDatetime() {
		return createDatetime;
	}
	public void setCreateDatetime(String createDatetime) {
		this.createDatetime = createDatetime;
	}
	public String getMemo() {
		return memo;
	}
	public void setMemo(String memo) {
		this.memo = memo;
	}
	public Client getClient() {
		return client;
	}
	public void setClient(Client client) {
		this.client = client;
	}
	public OrderStatus getStatus() {
		return status;
	}
	public void setStatus(OrderStatus status) {
		this.status = status;
	}
	public Payment getPayment() {
		return payment;
	}
	public void setPayment(Payment payment) {
		this.payment = payment;
	}
	public ArrayList<OrderItem> getOrderItems() {
		return orderItems;
	}
	public void setOrderItems(ArrayList<OrderItem> orderItems) {
		this.orderItems = orderItems;
	}
	
	
}
